//package com.lagou.filter;
//
//import com.lagou.entity.CustomHttpServletRequest;
//import org.springframework.stereotype.Component;
//
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.http.HttpServletRequest;
//import java.io.IOException;
//
//@Component
//public class CustomFilter implements Filter {
//
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        CustomHttpServletRequest request=new CustomHttpServletRequest((HttpServletRequest) servletRequest);
//        request.addHeader("myheader","瓜田李下");
//
//        filterChain.doFilter(request,servletResponse);
//    }
//}
